package cn.icare.cms;

import cn.icare.cms.dao.po.Area;
import cn.icare.cms.dao.po.ItemCat;
import cn.icare.cms.model.ro.AddAreaRO;
import cn.icare.cms.model.ro.AddItemCatRO;
import cn.icare.cms.model.ro.EditAreaRO;
import cn.icare.cms.model.ro.EditItemCatRO;
import cn.icare.cms.model.vo.rest.MsgDatasVO;

import java.util.List;

/**
 * 商品分类Service接口类
 */
public interface ItemCatService {
    Long createOne(AddItemCatRO ro);

    boolean updateOne(EditItemCatRO ro);

    boolean deleteOne(Long id);

    boolean deleteBatch(List<Long> ids);

    ItemCat getOne(Long id);

    MsgDatasVO getList(Long parentId, String name, Integer pageNum, Integer pageSize);

    boolean isExists(Long id,Long parentId,String name);
}
